package com.example.live.mvi


import com.bw.mvi.mvi.BaseViewModel
import com.example.live.api.LiveApiServer

class LiveViewModel : BaseViewModel<LiveApiServer, LiveIntent>() {
    override fun handleIntent(intent: LiveIntent) {
        when (intent) {
            is LiveIntent.getLiveList -> {
                httpRequest(apiService.getLiveList(intent.page, intent.pageSize), "getLiveList")
            }

        }
    }
}